package cc.messcat.service.helppeson;

import java.util.List;
import java.util.Map;

import cc.messcat.common.model.Pager;
import cc.messcat.common.service.BaseService;
import cc.messcat.entity.helpPerson.HelpPerson;
import cc.messcat.entity.helpUnits.HelpTeamPerson;
import cc.messcat.entity.helpUnits.HelpUnits;
import cc.messcat.entity.system.McUser;

public interface HelppesonService extends BaseService<HelpPerson> {

    void addHelppeson(HelpPerson helpPerson, Long HELP_UNIT);

    void modifyHelppeson(HelpPerson helpPerson);

    void modifyHelppesonunit(HelpPerson helpPerson, Long HELP_UNIT ,String unit_name);

    void modifyHelppesons(HelpPerson helpPerson, Long HELP_UNIT);

    public Pager<HelpPerson> getPage(int pageNo, int pageSize, String Affiliation, String Unit_name, String telephone_number);

    Pager<HelpPerson> getHelpPersonInHelpUnitsByArea(int pageNo, int pageSize, String Affiliation, String Unit_name, String telephone_number, List<Long> helpUnitIds);

    List<HelpPerson> helpPerson(Long id);


    HelpPerson helpPersons(Long id);
    
    HelpPerson getHelpPerson(HelpPerson helpPerson);

    List<HelpUnits> helpunits(Long id);

    Pager getHelpPresonsNotInTeam(Integer pageNo, Integer pageSize, Long unitId, Long villageId);

    Pager getPageNew(Integer pageNo, Integer pageSize, String affiliation,
                     String unit_name, String telephone_number);

    List<HelpTeamPerson> getPerson_id(Long a);

	void modifyHelppeson(HelpTeamPerson helpTeamPerson);

	boolean helppesonJudge(Long id);

	void updateHelpPersonAndPoorFamily(Long id);

	List<Map<Object, Object>> checkHelpPersonAndPoorFamily(Long id);

	List<HelpPerson> listHelpPerson(String helpPersonIds);

	Pager listHelpPerson(Integer pageNo, Integer pageSize, McUser user, String unitName, String name, String idNumber, String tel);

	List<Map<String, Object>> listPoorFamilyByHelpPerson(Long helpPersonID);

	List<HelpUnits> getHelpUnitByHelpPersonID(Long id);

}
